package com.qidianit.mes.pro.service.impl;

import com.qidianit.mes.pojo.Result;
import com.qidianit.mes.pojo.scheduling.ProductionTask;
import com.qidianit.mes.pro.mapper.ProductionTaskMapper;
import com.qidianit.mes.pro.service.ProductionTaskService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: YKYB
 * @Date: 2025/9/30 15:20
 * @Description:
 */
@Service
public class ProductionTaskServiceImpl implements ProductionTaskService {
    @Autowired
    private ProductionTaskMapper productionTaskMapper;

    @Override
    public Result<List<ProductionTask>> getScheduledTasksByWorkflowId(Long workflowId) {
        List<ProductionTask> list =
                productionTaskMapper.selectTaskByworkflowId(workflowId);
        return Result.success(list);
    }
}
